<template>
  <vue-scroll :ops="ops">
      <slot></slot>
  </vue-scroll>
</template>

<script>

    export default {
        name: "cm-scroll",
        data () {
          return {
            ops: {
              vuescroll: {},
              scrollPanel: {},
              rail: {
                keepShow:true
              },
              bar: {
                hoverStyle: true,
                onlyShowBarOnScroll: false, //是否只有滚动的时候才显示滚动条
                background: '#d6d8dd',
              }
            },
          }
        }
    }
</script>

<style scoped type="less">
  .__vuescroll {
     div{
      overflow: hidden;
    }
  }
  .__panel {
    overflow: hidden !important;
  }
</style>
